<?php
    return [
        'id' => 'returnvisitadd-form',
        'template' => 'form_default',
        'enableClientValidation' => false,
        'enableAjaxValidation' => true,
        'options' => ['class' => 'form-validate'],
        'models' => [
            'returnvisitadd' => [
                'title' => '添加客户',
                'th_with' => 80,
                'elements' => [
                    'interviewer_id' => [
                        'type' => 'dropdownlist',
                        'option'=>[
                            'encode'=>false,
                            'style'=>'width:170px',
                            'prompt' => '请选择当前约谈人'
                        ]
                    ],
                    'next_interviewer_id' => [
                        'type' => 'dropdownlist',
                        'option'=>[
                            'encode'=>false,
                            'style'=>'width:170px',
                            'prompt' => '请选择下次约谈人'
                        ]
                    ],
                    'type' => [
                        'type' => 'dropdownlist',
                        'option'=>[
                            'encode'=>false,
                            'style'=>'width:170px',
                            'prompt' => '请选择回访方式'
                        ]

                    ],
                    'created_at'=>[
                        'type'=>'text',
                        'options'=>[
                            'class'=>'datetimepicker',
                            'prompt' => '回访时间'
                        ],
                    ],

                    'next_time'=>[
                        'type'=>'text',
                        'options'=>[
                            'class'=>'datetimepicker',
                            'prompt' => '下次回访时间'
                        ],
                    ],
                    'status' => [
                        'type' => 'dropdownlist',
                        'option'=>[
                            'encode'=>false,
                            'style'=>'width:170px',
                            'prompt' => '请选择客户类型'
                        ]

                    ],
                    'details'=>[
                        'type'=>'widget',
                        'class'=>\doumiaoduo\ueditor\Ueditor::className(),
                        'clientOptions'=>[
                            'serverUrl'=>\common\components\helpers\Fun::url(['/uploader/action']),
                            'toolbars'=>[['fullscreen', 'source', '|', 'undo', 'redo', '|','bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'superscript', 'subscript','rowspacingtop', 'rowspacingbottom', 'lineheight', '|','justifyleft', 'justifycenter', 'justifyright', 'justifyjustify','simpleupload']],
                            'initialFrameWidth'=>'100%'
                        ],
                    ],
                    'results'=>[
                        'type'=>'widget',
                        'class'=>\doumiaoduo\ueditor\Ueditor::className(),
                        'clientOptions'=>[
                            'serverUrl'=>\common\components\helpers\Fun::url(['/uploader/action']),
                            'toolbars'=>[['fullscreen', 'source', '|', 'undo', 'redo', '|','bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'superscript', 'subscript','rowspacingtop', 'rowspacingbottom', 'lineheight', '|','justifyleft', 'justifycenter', 'justifyright', 'justifyjustify','simpleupload']],
                            'initialFrameWidth'=>'100%'
                        ],
                    ],

                ],
            ]
        ]
    ];

